//
//  Rick_HomeHeaderView.m
//  YLProject
//
//  Created by 张伯林 on 2018/1/18.
//  Copyright © 2018年 WY. All rights reserved.
//

#import "Rick_HomeHeaderView.h"

@implementation Rick_HomeHeaderView

+(instancetype)headerView{
    Rick_HomeHeaderView *headerView = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(Rick_HomeHeaderView.class) owner:self options:nil] firstObject];
    headerView.zhuanButton.layer.borderColor = [UIColor whiteColor].CGColor;
    headerView.zhuanButton.layer.borderWidth = 1;
    
    headerView.waveView = [WXWaveView addToView:headerView.bottomView withFrame:CGRectMake(0, 0, CGRectGetWidth(headerView.bottomView.frame), CGRectGetHeight(headerView.bottomView.frame))];
    
    // Optional Setting
    headerView.waveView.waveTime = 0.f;     // When 0, the wave will never stop;
    headerView.waveView.waveColor = [UIColor colorWithRed:255/255 green:255/255 blue:255/255 alpha:0.5];
    headerView.waveView.waveSpeed = 1.f;
    headerView.waveView.waveAmplitude = 10.f;
    [headerView.waveView wave];
    
    headerView.waveViewT = [WXWaveView addToView:headerView.bottomView withFrame:CGRectMake(0, 0, CGRectGetWidth(headerView.bottomView.frame), CGRectGetHeight(headerView.bottomView.frame))];
    
    // Optional Setting
    headerView.waveViewT.waveTime = 0.f;     // When 0, the wave will never stop;
    headerView.waveViewT.waveColor = [UIColor colorWithRed:255/255 green:255/255 blue:255/255 alpha:0.4];
    headerView.waveViewT.waveSpeed = .5f;
    headerView.waveViewT.waveAmplitude = 10.f;
    [headerView.waveViewT wave];
    
    headerView.waveViewH = [WXWaveView addToView:headerView.bottomView withFrame:CGRectMake(0, 0, CGRectGetWidth(headerView.bottomView.frame), CGRectGetHeight(headerView.bottomView.frame))];
    
    // Optional Setting
    headerView.waveViewH.waveTime = 0.f;     // When 0, the wave will never stop;
    headerView.waveViewH.waveColor = [UIColor colorWithRed:255/255 green:255/255 blue:255/255 alpha:0.3];
    headerView.waveViewH.waveSpeed = .8f;
    headerView.waveViewH.waveAmplitude = 10.f;
    [headerView.waveViewH wave];
    
    return headerView;
}

@end
